Micron Document
baubs git

Node / mirrors / respira / files / src / utils / displayFilename.ts

Displaying Raw • Download

src/utils/displayFilename.ts copilot/move-helper-functions-to-utils (7d8af876) Text, 501 B

/**
* getDisplayFilename Utility
*
* Determines which filename to display based on priority:
* 1. currentFileName (from pattern store)
* 2. localFileName (from file input)
* 3. resumeFileName (from cache)
* 4. Empty string
*/

export function getDisplayFilename(options: {
currentFileName: string | null;
localFileName: string;
resumeFileName: string | null;
}): string {
return (
options.currentFileName ||
options.localFileName ||
options.resumeFileName ||
""
);
}

Served by rngit 1.3.3 - Generated in 0.03s